package com.itmuch.cloud.controller;

import com.itmuch.cloud.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @author: chenhs
 * @date: Created in 19:27 2020/2/15
 **/
@RestController
public class HelloController {


    @Autowired
    private HelloService helloService;


    @RequestMapping("/hi")
    public String hi(@RequestParam String name){
        return helloService.hiService(name);
    }



}
